package com.ruoyi.passenger.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.passenger.mapper.TbPassengerConsumptionRecordMapper;
import com.ruoyi.passenger.domain.TbPassengerConsumptionRecord;
import com.ruoyi.passenger.service.ITbPassengerConsumptionRecordService;

/**
 * 用户详情-消费记录-新增Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
@Service
public class TbPassengerConsumptionRecordServiceImpl implements ITbPassengerConsumptionRecordService 
{
    @Autowired
    private TbPassengerConsumptionRecordMapper tbPassengerConsumptionRecordMapper;

    /**
     * 查询用户详情-消费记录-新增
     * 
     * @param consumptionId 用户详情-消费记录-新增主键
     * @return 用户详情-消费记录-新增
     */
    @Override
    public TbPassengerConsumptionRecord selectTbPassengerConsumptionRecordByConsumptionId(Long consumptionId)
    {
        return tbPassengerConsumptionRecordMapper.selectTbPassengerConsumptionRecordByConsumptionId(consumptionId);
    }

    /**
     * 查询用户详情-消费记录-新增列表
     * 
     * @param tbPassengerConsumptionRecord 用户详情-消费记录-新增
     * @return 用户详情-消费记录-新增
     */
    @Override
    public List<TbPassengerConsumptionRecord> selectTbPassengerConsumptionRecordList(TbPassengerConsumptionRecord tbPassengerConsumptionRecord)
    {
        return tbPassengerConsumptionRecordMapper.selectTbPassengerConsumptionRecordList(tbPassengerConsumptionRecord);
    }

    /**
     * 新增用户详情-消费记录-新增
     * 
     * @param tbPassengerConsumptionRecord 用户详情-消费记录-新增
     * @return 结果
     */
    @Override
    public int insertTbPassengerConsumptionRecord(TbPassengerConsumptionRecord tbPassengerConsumptionRecord)
    {
        return tbPassengerConsumptionRecordMapper.insertTbPassengerConsumptionRecord(tbPassengerConsumptionRecord);
    }

    /**
     * 修改用户详情-消费记录-新增
     * 
     * @param tbPassengerConsumptionRecord 用户详情-消费记录-新增
     * @return 结果
     */
    @Override
    public int updateTbPassengerConsumptionRecord(TbPassengerConsumptionRecord tbPassengerConsumptionRecord)
    {
        return tbPassengerConsumptionRecordMapper.updateTbPassengerConsumptionRecord(tbPassengerConsumptionRecord);
    }

    /**
     * 批量删除用户详情-消费记录-新增
     * 
     * @param consumptionIds 需要删除的用户详情-消费记录-新增主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerConsumptionRecordByConsumptionIds(Long[] consumptionIds)
    {
        return tbPassengerConsumptionRecordMapper.deleteTbPassengerConsumptionRecordByConsumptionIds(consumptionIds);
    }

    /**
     * 删除用户详情-消费记录-新增信息
     * 
     * @param consumptionId 用户详情-消费记录-新增主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerConsumptionRecordByConsumptionId(Long consumptionId)
    {
        return tbPassengerConsumptionRecordMapper.deleteTbPassengerConsumptionRecordByConsumptionId(consumptionId);
    }
}
